package com.liang.liangclientsdk;

import com.liang.liangclientsdk.client.LiangApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties("liangapi.client")
@Data
@ComponentScan
public class liangApiClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public LiangApiClient liangApiClent(){
       return new LiangApiClient(accessKey, secretKey);
    }
}
